package com.project.service;

import com.project.dao.WorkerMapper;
import com.project.pojo.Workers;
import javafx.concurrent.Worker;

import java.util.List;

public class WorkerServiceImpl implements WorkerService{
    private WorkerMapper workerMapper;

    public void setWorkerMapper(WorkerMapper workerMapper){
        this.workerMapper = workerMapper;
    }
    public List<Worker> queryAllWorker() {
        return workerMapper.queryAllWorker();
    }

    @Override
    public int addWorker(Workers worker) {
        return workerMapper.addWorker(worker);
    }

    @Override
    public int deleteByName(String name) {
        return workerMapper.deleteByName(name);
    }


}
